﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="menu_forum_label1" var="menu_forum_label1"/>
<c:if test="${!empty forumss}"> 

<TABLE class=leftColumnModuleHead cellSpacing=0 cellPadding=0 width="100%" border=0>
	<TBODY>	
<c:forEach var="forumcategorys" items="${forumcategorys}">
		<c:set var="haveForum" value="0"></c:set>
		<c:forEach var="forumss" items="${forumss}">
			<c:if test="${forumss.forumCategory.id == forumcategorys.id}">
				<c:set var="haveForum" value="1"></c:set>
			</c:if>
		</c:forEach>
		<c:if test="${haveForum == 1}">
			<tr>
			<TH class="menu_title_left" width="48"></TH>
			<th class="menu_title_middle">
			<c:choose> 
	    	<c:when test="${fn:length(forumcategorys.categoryname) > 7}"> 
            <span title="${forumcategorys.categoryname}">${fn:substring(forumcategorys.categoryname, 0,7)}...</span>
            </c:when> 
            <c:otherwise> 
           ${forumcategorys.categoryname}
            </c:otherwise> 
            </c:choose> 
            </th>
			<th width="48" align="right" class="menu_title_right"></th>
			</tr>
		</c:if>
		<c:forEach var="forumss" items="${forumss}">
			<c:if test="${forumss.forumCategory.id == forumcategorys.id}">
				 <TR  onmouseover="this.style.background='#f2f4fb';this.style.cursor='hand';" 
	    onmouseout="this.style.background='#ffffff';this.style.cursor='auto';" >
	    <TD align="left"></TD>
	    <TD class=subMenuTD id=submenu_forums${forumss.id}  nowrap="nowrap"><A class=subMenuLink 
	      href="<c:url value="/modules/forum/forumThread.do?forumId=${forumss.id}&cpage=1" />">
	      <IMG 
	      height=16 alt="${forums.forumname}" 
	      src="../../themes/${sessionScope.loginUser.theme}/images/forum.gif" 
	      width=16 align=absMiddle border=0>
	       <c:choose> 
	    	<c:when test="${fn:length(forumss.forumname) > 7}"> 
            <span title="${forumss.forumname}">${fn:substring(forumss.forumname, 0,7)}...</span>
            </c:when> 
            <c:otherwise> 
           ${forumss.forumname}
            </c:otherwise> 
            </c:choose> 
	      </A></TD></TR>
			</c:if>
		</c:forEach>
	</c:forEach>

	</TBODY>
</TABLE>
</c:if>
